<?php echo $header; ?>
<div id="content">
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <?php if ($success) { ?>
  <div class="success"><?php echo $success; ?></div>
  <?php } ?>
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/ticket.png" alt="" /> <?php echo $heading_title; ?></h1>
      <div class="buttons"><a onclick="$('form').submit();" class="button"><?php echo $text_save; ?></a></div>
    </div>
    <div class="content">
      <form method="post" action="<?php echo $action; ?>" enctype="multipart/form-data" id="form">
        <table class="list">
          <thead>
          	<tr>
          		<td><?php echo $text_assign; ?></td>
          		<td><?php echo $text_group; ?></td>
          	</tr>
          </thead>
          <tbody>
            <?php foreach ($groups as $group) { ?>
            <tr>
              <td><input value="<?php echo $group['id']; ?>" type="checkbox" <?php echo $group['checked']; ?> name="id[]" /></td>
              <td><?php echo $group['name']; ?></td>
            </tr>
            <?php } ?>
          </tbody>
        </table>
      </form>
    </div>
  </div>
</div>
<?php echo $footer; ?> 